<template>
  <div class="hello">
    <div>打包环境：{{baseUrl}}</div>
    <div>打包JS环境：{{NODE_ENV}}</div>
    <h1>{{ localMsg }}</h1>
    <h1>{{ remoteMsg }}</h1>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    localMsg: String,
    remoteMsg: String
  },
  data () {
    return {
      baseUrl: '',
      baseJsUrl: ''
    }
  },
  created () {
  },
  mounted () {
    this.getModeEnv()
  },
  computed: {

  },
  methods: {
    getModeEnv () {
      this.baseUrl = process.env.VUE_APP_API
      this.NODE_ENV = process.env.NODE_ENV
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
